package com.lantosec.hmrp.modules.form.enumeration;

/**
 * 表单固定参数枚举
 */
public enum FormFinalStaticVariableEnum {
    // 转发类型（AUTO 自动， MANUAL 人工）
    SIGNATURE("signature","用户签名照片"),
    AUDIT_STATUS("auditStatus","审核状态 1 通过，0 不通过"),
    COMMENT("comment", "审核意见");

    private String code;
    private String name;

    FormFinalStaticVariableEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static FormFinalStaticVariableEnum getByCode(String code) {
        for (FormFinalStaticVariableEnum item : FormFinalStaticVariableEnum.values()) {
            if (item.getCode().equals(code)) {
                return item;
            }
        }
        return FormFinalStaticVariableEnum.COMMENT;
    }
}
